package benny.ApkposStore.model;

import benny.ApkposStore.Activity.ApkposStoreActivity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootBroadcastReceiver extends BroadcastReceiver { 

static final String ACTION = "android.intent.action.BOOT_COMPLETED"; 

@Override 
public void onReceive(Context context, Intent intent) { 
  
  if (intent.getAction().equals(ACTION)){ 
   Intent sayHelloIntent=new Intent(context,ApkposStoreActivity.class); 
   sayHelloIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); 

   context.startActivity(sayHelloIntent); 
  } 
} 

} 
